#pragma once


typedef struct data_type{
    char *dir_item;// 以\0结尾的严格c字符串
    struct data_type *netx;
}DT_7th;

typedef struct link_stack{
    DT_7th *fail;
    int size;
}LStack_7th;


int initLStack_7th(LStack_7th *link_stack);

// 压栈
int pushLStack_7th(LStack_7th *link_stack,DT_7th *item);

// 出站
int pullLStack_7th(LStack_7th *link_stack,DT_7th *item);


// 销毁item字段
void freeDTitem_7th(DT_7th *item);

// 销毁itemtype
void freeDT_7th(DT_7th *item);


// 销毁栈
void freeLSTack_7th(LStack_7th *stack);



